package com.tjhk.design.pojo;

import java.io.*;

public class Student implements Serializable {
    private String name;
    private  int year;
    private transient String sex;

    public Student(){
    }

    public Student(String name,int year){
        this.name = name;
        this.year = year;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getYear() {
        return year;
    }

    public void setYear(int year) {
        this.year = year;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }
}